<%@ page import="com.dbb.entity.Suit" %>



<div class="fieldcontain ${hasErrors(bean: suitInstance, field: 'type', 'error')} required">
	<label for="type">
		<g:message code="suit.type.label" default="Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:radioGroup name="type" labels="['A','B']" values="['A','B']" required="" value="${suitInstance?.type}" >
		${it.label} : ${it.radio}
	</g:radioGroup>
</div>

<div class="fieldcontain ${hasErrors(bean: suitInstance, field: 'colorSizes', 'error')} ">
	<label for="colorSizes">
		<g:message code="suit.colorSizes.label" default="Color Sizes" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${suitInstance?.colorSizes?}" var="c">
    <li><g:link controller="colorSize" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="colorSize" action="create" params="['suit.id': suitInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'colorSize.label', default: 'ColorSize')])}</g:link>
</li>
</ul>

</div>

